package top.yihoxu.yoj.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import top.yihoxu.yoj.model.dto.questionsubmit.QuestionSubmitAddRequest;
import top.yihoxu.yoj.model.dto.questionsubmit.QuestionSubmitQueryRequest;
import top.yihoxu.yoj.model.entity.QuestionSubmit;
import top.yihoxu.yoj.model.entity.User;


/**
* @author hushi
* @description 针对表【question_submit(题目提交表)】的数据库操作Service
* @createDate 2024-04-28 22:51:59
*/
public interface QuestionSubmitService extends IService<QuestionSubmit> {

    /**
     * 题目提交信息
     * @param questionSubmitAddRequest
     * @param loginUser
     * @return
     */
    long doQuestionSubmit(QuestionSubmitAddRequest questionSubmitAddRequest, User loginUser);

    /**
     * 获取查询条件
     *
     * @param questionSubmitQueryRequest
     * @return
     */
    QueryWrapper<QuestionSubmit> getQueryWrapper(QuestionSubmitQueryRequest questionSubmitQueryRequest);
}
